package com.dashan.componentdemo;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.dashan.module.librouter.Router;
import com.dashan.module.login.LoginActivity;
import com.dashan.module.main.MainActivity;

public class  App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        //Router.getInstance().register("/main/MainActivity", MainActivity.class);
        //Router.getInstance().register("/login/LoginActivity", LoginActivity.class);

        ARouter.openDebug();
        ARouter.openLog();

        //初始化路由器
        ARouter.init(this);
    }
}
